package com.wuyoucar.mapper;

import com.wuyoucar.entity.TCarinfo;
import com.wuyoucar.entity.TCarinfoSource;
import com.wuyoucar.entity.TOrder;

import com.wuyoucar.entity.TPolicy;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface TOrderMapper {
    //根据用户id查询所有的相应的订单
    List<TOrder> selectOrderList(Integer userid);
    //跟订单id修改订单信息
    int upateOrderByOrderid(TOrder order);
    //根据订单id取消该订单
    int deleteOrderByOrderid(String ordernumber);
    //根据订单id查找订单
    TOrder selectOrderByOrderid(String ordernumber);
    //支付订单
    int payOrder(TOrder order);
    //支付订单后将信息添加到保单中
    int savePolicy(TPolicy policy);
    //根据用户id车carinfo的验证用户信息
    TCarinfoSource selectcarinfoSource(Map<String,String> map);
    //修改order表的remark信息
    int updateOrderCheck(Map<String,String> map);
}
